package com.nami.store.biz.group.convert;

import com.nami.store.api.response.group.GroupDTO;
import com.nami.store.domain.GroupDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群convert
 *
 * @author lbc@test.com
 * @since 1.0.0 2022-11-29
 */
@Mapper
public interface GroupConvert {

    GroupConvert INSTANCE = Mappers.getMapper(GroupConvert.class);

    /**
     * entity ==> vo
     *
     * @param group
     * @return
     */
    GroupDTO convert(GroupDO group);

    /**
     * list convert
     * @param groupList
     * @return
     */
    List<GroupDTO> convertList(List<GroupDO> groupList);

}






















